import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/admin/indexImg/page',
    method: 'get',
    headers: {
      "authorization": localStorage.getItem("token")
    },
    params
  })
}

export function getInfo(params) {
  return request({
    url: `/admin/indexImg/info/${params.id}?t=${params.t}`,
    method: 'get',
    headers: {
      "authorization": localStorage.getItem("token")
    }
  })
}

export function prodPage(params) {
  return request({
    url: '/prod/prod/page',
    method: 'get',
    headers: {
      "authorization": localStorage.getItem("token")
    },
    params
  })
}

export function deleteder(data) {
  return request({
    url: '/admin/indexImg',
    method: 'delete',
    data,
    headers: {
      "authorization": localStorage.getItem("token")
    },
  })
}
// 保存修改
export function DelindexImg(data) {
  return request({
    url: '/admin/indexImg',
    method: 'PUT',
    headers: {
      "authorization": localStorage.getItem("token")
    },
    data
  })
}
// 新增
export function DeliAdd(data) {
  return request({
    url: '/admin/indexImg',
    method: 'POST',
    headers: {
      "authorization": localStorage.getItem("token")
    },
    data
  })
}
